﻿{include file="Public/public" /}
<script src="/static/admin/jquery-1.8.3.min.js"></script>
<body>
 <div class="wrap">
  <div class="page-title">
    <span class="modular fl"><i class="add"></i><em>分配权限</em></span>
  </div>
  <form action="/adminuser/update_power" method="post">
  <table class="list-style">
  <tr>
    <td style="text-align:right;width:15%;">名称：</td>
    <td><input type="text" name="name" value="{$node['name']}"  class="textBox length-long"/></td>
   </tr>
   <tr>
    <td style="text-align:right;">权限：</td>

    <td>
      {foreach name="data" item="row"}
     <input type="checkbox" name="power[]" value="{$row['id']}" id="power{$row.id}" {if condition="in_array($row['id'],$powerdata)"}checked{/if} />
     <label for="jingpin">{$row['name']}</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     {/foreach}
    </td>
   </tr>
  
     <tr>
    <td style="text-align:right;"></td>
   <input type="hidden" name="uid" value="{$uid}">
    <td><input type="submit" value="保存" class="tdBtn"/></td>

   </tr>
  </table>
  </form>
 </div>
</body>
</html>
<script>
    $('#power2').attr('disabled','');
    $('#power3').attr('disabled','');
    $('#power4').attr('disabled','');
    $('#power5').attr('disabled','');
    $('#power6').attr('disabled','');

  
  
</script>
